import { SysAuth } from "@/api-services/models/system";
import { BaseApi } from "@/api-services/apis/baseApi";

/**
 * 认证服务
 */
class DingAuthApi extends BaseApi {
  //登录
  login = async (data: string) => {
    return this.normalPost<SysAuth.LoginInfo>(`/dingLogin`, { authCode: data });
  };
}

export default new DingAuthApi("/ding/auth");
